package com.kwok.openplatform.service.impl;

import com.kwok.openplatform.dao.UserDao;
import com.kwok.openplatform.entity.User;
import com.kwok.openplatform.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public Integer register(User user) {
        return userDao.insertUser(user);
    }

    @Override
    public User queryUserByUsername(String username) {
        return userDao.selectUserByUsername(username);
    }

}
